package com.example.vo;

import com.example.entity.enums.OrderStatusEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author circle48
 */
@Data
public class OrderSimpleVO {
    /**
     * id
     */
    @JsonFormat(shape =JsonFormat.Shape.STRING )
    private Long id;

    /**
     * 订单号
     */
    private String orderSn;

    /**
     * 订单总额
     */
    private BigDecimal totalAmount;

    /**
     * 订单状态【0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单】
     */
    private OrderStatusEnum status;
    private String orderStatus;

    /**
     * 用户名
     */
    private String memberUsername;

    /**
     * 确认收货状态[0->未确认；1->已确认]
     */
    private Integer confirmStatus;

    /**
     * 支付时间
     */
    private LocalDateTime paymentTime;

    /**
     * 店家id
     */
    private Long storeId;

    /**
     * 店铺名
     */
    private String storeName;

    private List<OrderItemVO> orderItems;

}
